Release 10.1A: OpenEdge Development:
ADM and SmartObjects


AppServer session operating modes and SmartDataObjects

In a distributed application, a SmartDataObject inherits its operating mode—state-aware, stateless, or state-reset—from the AppServer it uses to access its database. (This is the default behavior; you need not configure the SmartDataObject specially for this to happen.) These three modes operate as follows:

In some cases, you might want a SmartDataObject to run in a state-aware mode even though the AppServer is running in stateless mode. For example, a SmartDataObject might have a query that is so complex that the overhead of re-establishing it at every use degrades performance. To request state-aware mode explicitly, you set the Force to Stateful Operating Mode instance property in the SmartDataObject’s instance properties dialog box. This property causes the SmartDataObject to run in state-aware mode even though AppServer session is running in stateless mode. See the "SmartDataObject instance properties" section.

Note: A SmartDataObject executes exactly the same regardless of its operating mode.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095